package Starter;


import java.io.IOException;
import javax.swing.*;



import Connector.Connector;

/**
 * Klasa reprezentujaca funkcje logowania/wej�cia do serweru
 * @author Maciej Graszek
 * @author Paweł Rychły
 *
 */

public class LogIn extends JPanel {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	/*
    public void openMenu(ActionEvent e) {

        	System.out.println("Wchodzimy do gry!");
       
            java.awt.EventQueue.invokeLater(new Runnable() {

                public void run() {
                	
                	//TODO Po��czenie z serwerem
                	
                	int id = 5;
                	
                    JDialog frame = new JDialog();
                    frame.setTitle("Smash-Tris Menu");
                    
                    //frame.setUndecorated(true);
                    frame.setMinimumSize(new Dimension(707, 530)); 
                    
                    //final Menu menu = new Menu(login.getText(), id, frame, connector);
                	final Menu menu = new Menu(login.getText(), id, frame);
                    menu.setOpaque(true);                
                    
                    frame.setContentPane(menu);
                    frame.pack();
                    frame.setVisible(true);
                	currentDialog.setEnabled(false);
                	currentDialog.setVisible(false);
                }
            });	        	
    }	



    */
	/**
	 * @param args
	 */
	public static void main(String[] args) {

        java.awt.EventQueue.invokeLater(new Runnable() {

            public void run() {
            	Connector connector;

					MainFrame mainFrame = new MainFrame();
					mainFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

            	
				
            }
        });		

	}


}